﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AerolionMVC.Models.Flight>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<script src="<%=Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"> </script>
<script src="<%=Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>" type="text/javascript"> </script>
<script src="<%=Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>" type="text/javascript"> </script>


    <h2>Create</h2>

    <% using (Html.BeginForm()) {%>
        <% Html.EnableClientValidation(); %>

        <fieldset>
            <legend>Fields</legend>
            <%= Html.EditorFor(m => m) %>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

